﻿<phone:PhoneApplicationPage 
    xmlns:local="clr-namespace:MTGScore_Cards"
    local:TiltEffect.IsTiltEnabled="True"
    x:Class="MTGScore_Cards.CardPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" Loaded="CardPage_Loaded"
    xmlns:toolbox="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="{Binding Path=Strings.Title, Source={StaticResource LocalizedStrings }}" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="{Binding Path=Strings.Card, Source={StaticResource LocalizedStrings }}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>



        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="399*" />
                <RowDefinition Height="36*" />
                <RowDefinition Height="100" />
            </Grid.RowDefinitions>
            <ScrollViewer Name="ScrollViewer" Grid.RowSpan="1" Grid.Row="0">

                <StackPanel Name="StackPanel">



                    <TextBlock Height="60" HorizontalAlignment="Stretch" Name="Name_TextBox" Text="" VerticalAlignment="Top" Width="460" FontSize="24" TextAlignment="Center" />

                    <Image Height="542" HorizontalAlignment="Stretch" Name="Image" Stretch="Fill" VerticalAlignment="Top" Width="380" />

                    <TextBlock Text=" " HorizontalAlignment="Left" FontSize="26"/>
                    <TextBlock Text="{Binding Path=Strings.Card_Type, Source={StaticResource LocalizedStrings }}" HorizontalAlignment="Left" FontSize="26"/>
                    <TextBox Name="Type_TextBox" IsReadOnly="True"  AcceptsReturn="True" Text="" HorizontalAlignment="Stretch" FontSize="22"/>

                    <TextBlock Text=" " HorizontalAlignment="Left" FontSize="26"/>
                    <TextBlock Text="{Binding Path=Strings.Card_Text, Source={StaticResource LocalizedStrings }}" HorizontalAlignment="Left" FontSize="26"/>
                    <TextBlock Name="Text_TextBox"  Text="" HorizontalAlignment="Stretch" FontSize="22" TextWrapping = "Wrap"/>
                    
                    <TextBlock Text=" " HorizontalAlignment="Left" FontSize="26"/>
                    <TextBlock Text="{Binding Path=Strings.Card_CCC, Source={StaticResource LocalizedStrings }}" HorizontalAlignment="Left" FontSize="26"/>
                    <TextBox Name="CCC_TextBox" IsReadOnly="True"  Text="" HorizontalAlignment="Stretch" FontSize="24"/>
                    
                    <TextBlock Text=" " HorizontalAlignment="Left" FontSize="26"/>
                    <TextBlock Text="{Binding Path=Strings.Card_CC, Source={StaticResource LocalizedStrings }}" HorizontalAlignment="Left" FontSize="26"/>
                    <TextBox Name="CC_TextBox"  IsReadOnly="True" Text="" HorizontalAlignment="Stretch" FontSize="24"/>


                    <TextBlock Name="Faqs_Interline" Text=" " HorizontalAlignment="Left" FontSize="26"/>
                    <TextBlock Name="Faqs_Text" Text="{Binding Path=Strings.Card_Faqs, Source={StaticResource LocalizedStrings }}" HorizontalAlignment="Left" FontSize="26"/>
                    <ListBox Name="Faqs_List" ScrollViewer.VerticalScrollBarVisibility="Disabled" SelectionChanged="Faqs_List_SelectionChanged" SelectionMode="Single">
                    </ListBox>
                    
                    <TextBlock Name="Legals_Interline" Text=" " HorizontalAlignment="Left" FontSize="26"/>
                    <TextBlock Name="Legals_Text" Text="{Binding Path=Strings.Card_Legals, Source={StaticResource LocalizedStrings }}" HorizontalAlignment="Left" FontSize="26"/>
                    <ListBox Name="Legals_List" ScrollViewer.VerticalScrollBarVisibility="Disabled" SelectionChanged="Legals_List_SelectionChanged" SelectionMode="Single">
                    </ListBox>

                    <TextBlock Text=" " HorizontalAlignment="Left" FontSize="26"/>

                </StackPanel>
            </ScrollViewer>

            <toolbox:PerformanceProgressBar Name="ToggleProgressBar" Grid.Row="1" Height="20" />

            <Grid Name="AdGrid"  xmlns:adctl="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI" Grid.Row="2">
                <adctl:AdControl Name="AdControl" Height="80" Width="480" AdUnitId="32126" ApplicationId="a62110a4-daf5-481c-a39e-12e3169f10f0" AdModel="Contextual" AdControlError="AdControl_AdControlError"/>
            </Grid>
            
            <Button Content="{Binding Path=Strings.OtherProducts, Source={StaticResource LocalizedStrings }}" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Stretch" Name="Ads_Button" VerticalAlignment="Stretch" Click="Ads_Button_Click" Visibility="Collapsed"/>
            
            
        </Grid>


    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">

        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
